package com.heima.estatemanagement.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.estatemanagement.domain.ParkingCode;
import com.heima.estatemanagement.mapper.ParkingCodeMapper;
import com.heima.estatemanagement.service.ParkingCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 实现类
 * Created by 86191 on 2023/1/29.
 */
@Service
public class ParkingCodeServiceImpl extends ServiceImpl<ParkingCodeMapper, ParkingCode> implements ParkingCodeService
       {
              @Autowired
              private ParkingCodeMapper parkingCodeMapper;
              @Override
              public long findByCode() {
                     return parkingCodeMapper.findByCode();
              }

              @Override
              public void add() {
                     parkingCodeMapper.add();
              }
       }
